package gam.n1.e.p;


import gam.n1.areas.Area;
import gam.n1.e.NormalEvent;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;

public class PlayerLeaveGameEvent extends NormalEvent {
    private static final HandlerList handlers = new HandlerList();
    private final Area area;
    private final Player player;

    public PlayerLeaveGameEvent(Player who, @NotNull Area area) {
        this.player = who;
        this.area = area;
    }

    public Area getLeaveArea() {
        return area;
    }

    public Player getPlayer() {
        return player;
    }
    public Area getArea() {
        return area;
    }
}
